package com.mcxx.modules.miniSalvation.order.service.write;

import com.mcxx.modules.miniSalvation.order.dao.write.SuspendApproveWriteDao;
import com.mcxx.modules.miniSalvation.order.entity.SuspendApproveEntity;
import com.yinhai.ta404.core.service.BaseService;
import com.yinhai.ta404.core.transaction.annotation.TaTransactional;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service("suspendApproveWriteService")
@TaTransactional
public class SuspendApproveWriteService extends BaseService {

    @Autowired
    private SuspendApproveWriteDao suspendApproveWriteDao;


    public int insert(SuspendApproveEntity suspendMember){
        return suspendApproveWriteDao.insert(suspendMember);
    }


    public int insertIgnoreNull(SuspendApproveEntity suspendMember){
        return suspendApproveWriteDao.insertIgnoreNull(suspendMember);
    }


    public int update(SuspendApproveEntity suspendMember){
        return suspendApproveWriteDao.update(suspendMember);
    }


    public int updateIgnoreNull(SuspendApproveEntity suspendMember){
        return suspendApproveWriteDao.updateIgnoreNull(suspendMember);
    }


    public int delete(SuspendApproveEntity suspendMember){
        return suspendApproveWriteDao.delete(suspendMember);
    }


    public int deleteById(String id){
        return suspendApproveWriteDao.deleteById(id);
    }


    public int deleteByFamilyId(String familyId){
        return suspendApproveWriteDao.deleteByFamilyId(familyId);
    }

}
